<?php
/**
 * 这是 LLQ-YXS 皮肤
 * 
 * @package LLQ-YXS Theme 
 * @author LLQ
 * @version 1.0
 * @link http://www.lilaiqun.com
 */

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
 $this->need('header.php');
 ?>

  <!-- /文章列表 -->
  <div class="index-main clearfix">
			<div class="main-title">
			<h4 class="post-left-title fl">最新资讯</h4>
			<div class="fr"></div>
      </div>
			<div class="row">
        <?php while($this->next()): ?>
        <div class="article-box clearfix excerpt-1">
          <div class="col-md-4">
            <?php 
            echo '<br>';
            echo $this->cid;
            Typecho_Widget::widget('Widget_Contents_Attachment_Related', 'parentId=' . $this->cid)->to($attachment);

            print_r($attachment->cid);exit;
            if ($attachment->next()) { 
              echo $attachment->cid;exit;
              ?>
            <div class="thumbnail">
              <a href="<?php $this->permalink() ?>" title="<?php $this->title() ?>">
                <img src="<?php echo $attachment->attachment->url; ?>" alt="<?php $this->title() ?>" class="wp-post-image"width="240" height="160"  />
              </a>
            </div>
            <?php }?>
          </div><!-- col-md-4 -->
            
          <div class="col-md-8">
            <h2>
              <a href="<?php $this->permalink() ?>"  target="_blank" title="<?php $this->title() ?>"><?php $this->title() ?></a>
            </h2>
            <p class="txtcont hidden-xs">
              <a href="<?php $this->permalink() ?>"  target="_blank" title="">
              </a>
            </p>
            <div class="meta">
              <?php foreach($this->getCategory() as $category): ?>
              <span class="label label-info">
                <a href="#"><?php echo $category; ?></a>
              </span>
              <?php endforeach; ?>
              <time class="item"><i class="fa fa-clock-o"></i><?php $this->date();?></time>
            </div>
          </div><!-- col-md-8 -->

        </div>
        <?php endwhile; ?>
 
      </div>
  </div>
  <!-- /文章列表 -->
  </section>

 

<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>
